package day15.原子性问题synchronized解决;

import day15.原子性问题Volatile解决.Money;

public class MyThread22 extends Thread {

    @Override
    public void run() {
        synchronized (Money1.lock) {
            try {
                Thread.sleep(10);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            Money1.money = 90000;
        }
    }
}
